package com.windfone.service;

import java.util.List;

import com.windfone.model.Member;
import com.windfone.model.MemberDetail;
import com.windfone.model.Orderhistory;
import com.windfone.model.UserSendAddress;

public interface MemberService {
	public int addMember(Member bean);
	public long addMemberGetReturnKey(Member bean);
	public int updateMember(Member bean);
	public int updateMemberName(Member bean);
	
	public int deleteMember(int key);
	
	public int addMemberDetail(MemberDetail bean);
	public int updateMemberLevl(Member bean) ;
	public int updateMemberDetail(MemberDetail bean);
	public int deleteMemberDetail(int key);
	public List<Member> getMembers(int beginRecord,String whereCondition);
	public int getAllRecorderNumber(String whereCondition);
	public int deleteMemberDetailByMemeberId(int memberId);
	public Member getMemberByKey(int memberId);
	public MemberDetail getMemberDetailByKey(int memberId);
	public boolean checkMember( Member bean );
	public boolean checkMemberBypwd( Member bean );
	public int addRegisterUser(Member m);
	public int addRegisterDetailUser(MemberDetail m);
	public Member getMemberByLoginName(Member bean) ;
	public Member loginByMobile(String loginName,String password);
	public Member loginByLoginName(String loginName, String password);
	
	public int addOrderHistory(Orderhistory bean);
	public Orderhistory getOrderHistoryById(int purchaseHistoryId);
	public int updateOrderHistory(Orderhistory bean);
	public int deleOrderHistory(Orderhistory bean);
	public List<Orderhistory> listOrderHistoryByUserId(int userId);
	public Member checkMemberByCardId(Member bean);
	public int updateLastLogin(Member memberBean);
	
	public int addUserSendAddres(UserSendAddress bean);
	public int updateUserSendAddres(UserSendAddress bean);
	public int delUserSendAddres(UserSendAddress bean);
	public  List<UserSendAddress> listUserSendAddres(UserSendAddress bean);
	public  UserSendAddress getUserSendAddres(UserSendAddress bean);
	public int countOneUserSendAddres(UserSendAddress bean);
}
